using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;

namespace PcrExperimentProject
{
	public class FormProjectAdvancedOption : Form
	{
		private IContainer components;

		protected Panel panelButtons;

		protected Label label1;

		protected Button btnCancel;

		protected Button btnConfirm;

		private GroupBox grpTubeCountOption;

		private NumericUpDown numTubeCount;

		private Label lblTubeCount;

		protected override void Dispose(bool disposing)
		{
			if (disposing && components != null)
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}

		private void InitializeComponent()
		{
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PcrExperimentProject.FormProjectAdvancedOption));
			this.panelButtons = new System.Windows.Forms.Panel();
			this.label1 = new System.Windows.Forms.Label();
			this.btnCancel = new System.Windows.Forms.Button();
			this.btnConfirm = new System.Windows.Forms.Button();
			this.grpTubeCountOption = new System.Windows.Forms.GroupBox();
			this.numTubeCount = new System.Windows.Forms.NumericUpDown();
			this.lblTubeCount = new System.Windows.Forms.Label();
			this.panelButtons.SuspendLayout();
			this.grpTubeCountOption.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)this.numTubeCount).BeginInit();
			base.SuspendLayout();
			this.panelButtons.AccessibleDescription = null;
			this.panelButtons.AccessibleName = null;
			resources.ApplyResources(this.panelButtons, "panelButtons");
			this.panelButtons.BackgroundImage = null;
			this.panelButtons.Controls.Add(this.label1);
			this.panelButtons.Controls.Add(this.btnCancel);
			this.panelButtons.Controls.Add(this.btnConfirm);
			this.panelButtons.Font = null;
			this.panelButtons.ForeColor = System.Drawing.SystemColors.ControlText;
			this.panelButtons.Name = "panelButtons";
			this.label1.AccessibleDescription = null;
			this.label1.AccessibleName = null;
			resources.ApplyResources(this.label1, "label1");
			this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.label1.Font = null;
			this.label1.Name = "label1";
			this.btnCancel.AccessibleDescription = null;
			this.btnCancel.AccessibleName = null;
			resources.ApplyResources(this.btnCancel, "btnCancel");
			this.btnCancel.BackgroundImage = null;
			this.btnCancel.Font = null;
			this.btnCancel.Name = "btnCancel";
			this.btnCancel.UseVisualStyleBackColor = true;
			this.btnCancel.Click += new System.EventHandler(btnCancel_Click);
			this.btnConfirm.AccessibleDescription = null;
			this.btnConfirm.AccessibleName = null;
			resources.ApplyResources(this.btnConfirm, "btnConfirm");
			this.btnConfirm.BackgroundImage = null;
			this.btnConfirm.Font = null;
			this.btnConfirm.Name = "btnConfirm";
			this.btnConfirm.UseVisualStyleBackColor = true;
			this.btnConfirm.Click += new System.EventHandler(btnConfirm_Click);
			this.grpTubeCountOption.AccessibleDescription = null;
			this.grpTubeCountOption.AccessibleName = null;
			resources.ApplyResources(this.grpTubeCountOption, "grpTubeCountOption");
			this.grpTubeCountOption.BackgroundImage = null;
			this.grpTubeCountOption.Controls.Add(this.numTubeCount);
			this.grpTubeCountOption.Controls.Add(this.lblTubeCount);
			this.grpTubeCountOption.Font = null;
			this.grpTubeCountOption.Name = "grpTubeCountOption";
			this.grpTubeCountOption.TabStop = false;
			this.numTubeCount.AccessibleDescription = null;
			this.numTubeCount.AccessibleName = null;
			resources.ApplyResources(this.numTubeCount, "numTubeCount");
			this.numTubeCount.Font = null;
			this.numTubeCount.Minimum = new decimal(new int[4] { 1, 0, 0, 0 });
			this.numTubeCount.Name = "numTubeCount";
			this.numTubeCount.Value = new decimal(new int[4] { 1, 0, 0, 0 });
			this.lblTubeCount.AccessibleDescription = null;
			this.lblTubeCount.AccessibleName = null;
			resources.ApplyResources(this.lblTubeCount, "lblTubeCount");
			this.lblTubeCount.Font = null;
			this.lblTubeCount.Name = "lblTubeCount";
			base.AccessibleDescription = null;
			base.AccessibleName = null;
			resources.ApplyResources(this, "$this");
			base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.BackgroundImage = null;
			base.Controls.Add(this.grpTubeCountOption);
			base.Controls.Add(this.panelButtons);
			this.Font = null;
			base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
			base.Icon = null;
			base.MaximizeBox = false;
			base.MinimizeBox = false;
			base.Name = "FormProjectAdvancedOption";
			base.ShowIcon = false;
			base.ShowInTaskbar = false;
			base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show;
			this.panelButtons.ResumeLayout(false);
			this.grpTubeCountOption.ResumeLayout(false);
			this.grpTubeCountOption.PerformLayout();
			((System.ComponentModel.ISupportInitialize)this.numTubeCount).EndInit();
			base.ResumeLayout(false);
		}

		public int GetTubeCount()
		{
			return (int)numTubeCount.Value;
		}

		public string GetDescription()
		{
			return string.Empty;
		}

		public FormProjectAdvancedOption(int tubeCount, string description)
		{
			InitializeComponent();
			numTubeCount.Value = tubeCount;
			base.DialogResult = DialogResult.Cancel;
		}

		private void btnConfirm_Click(object sender, EventArgs e)
		{
			base.DialogResult = DialogResult.OK;
		}

		private void btnCancel_Click(object sender, EventArgs e)
		{
			base.DialogResult = DialogResult.Cancel;
		}
	}
}
